<!DOCTYPE html>
<html class="x-admin-sm">
{include file='public/header'}
<link rel="stylesheet" href="/admin/xadmin/lib/layui/css/inputTag.css">
<script src="/admin/xadmin/lib/layui/upload.js" charset="utf-8"></script>
<script type="text/javascript" src="/admin/xadmin/lib/layui/inputTag.js" charset="utf-8"></script>
<body>
    <div class="x-body">
        <form class="layui-form" lay-filter="formAjax">

            <div class="layui-form-item">
                <label class="layui-form-label w-auto">
                    <span class="x-red">*</span>选择小程序
                </label>
                <div id="applet_id" style="width:100%;flex:1"></div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red"></span>提现的金额
                </label>
                <div class="layui-input-block">
                    <input type="text" name="withdraw_amount" id="withdraw_amount" placeholder="提现的金额，不传的表示全额提现"
                        lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <input type="hidden" name="id" id="id" value="" />
            <button id="submitData" class="layui-btn" lay-submit lay-filter="submitData" style="display: none;" />

        </form>
    </div>
    <script>
        let params = {
            addUrl: '/admin/finance/withdrawAdd',
            editUrl: '/admin/applet/withdrawEdit',
            detailUrl: '/admin/finance/withdrawDetail',
        }
        form_ajax(params)
        let id = GetQueryString('id')
        let selectParams = {
            url: '/admin/applet/select',
            elem: '#applet_id',
            selected: [],
            tips: '选择小程序',
            name: 'applet_id',
            field_id: 'id',
            field_Name: 'name',
        }
        selectN(selectParams)
    </script>
</body>

</html>